import Layout from '@/views/layout/Layout'

const profileRouter = {
  path: '/profile',
  component: Layout,
  redirect: '/profile/index',
  alwaysShow: false, // will always show the root menu
  meta: {
    title: '个人信息',
    icon: 'edit',
    roles: ['student', 'teacher'] // you can set roles in root nav
  },
  children: [{
    path: 'teacherProfile',
    component: () => import('@/views/profile/teacherProfile'),
    name: 'TeacherProfile',
    meta: {
      title: '教师个人信息',
      roles: ['teacher'] // or you can only set roles in sub nav
    }
  },
  {
    path: 'studentProfile',
    component: () => import('@/views/profile/studentProfile'),
    name: 'StudentProfile',
    meta: {
      title: '学生个人信息',
      roles: ['student'] // or you can only set roles in sub nav
    }
  }]
}
export default profileRouter
